// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** getApplyFriend POST /api/contact/getApplyFriend */
export async function getApplyFriendUsingPost(options?: { [key: string]: any }) {
  return request<API.ResponseVO>('/api/contact/getApplyFriend', {
    method: 'POST',
    ...(options || {})
  })
}

/** loadContactUsers POST /api/contact/loadContactUsers */
export async function loadContactUsersUsingPost(options?: { [key: string]: any }) {
  return request<API.ResponseVO>('/api/contact/loadContactUsers', {
    method: 'POST',
    ...(options || {})
  })
}

/** searchFriends POST /api/contact/searchFriends */
export async function searchFriendsUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.searchFriendsUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.ResponseVO>('/api/contact/searchFriends', {
    method: 'POST',
    params: {
      ...params
    },
    ...(options || {})
  })
}

/** sendAddFriend POST /api/contact/sendAddFriend */
export async function sendAddFriendUsingPost(
  body: API.SendAddFriendDto,
  options?: { [key: string]: any }
) {
  return request<API.ResponseVO>('/api/contact/sendAddFriend', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  })
}
